package com.chushouya.order.dto.admin.orderlogistics;

import com.chushouya.order.constants.LogisticsTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("订单物流信息查询")
public class OrderLogisticsDTO {

    @ApiModelProperty("物流单号")
    private String expressNo;

    @ApiModelProperty("物流公司")
    private String expressCompany;

    @ApiModelProperty("物流类型")
    private Integer type;

    public String getTypeText() {
        return LogisticsTypeEnum.getDesc(this.type);
    }

}
